package org.dromara.bzIns.domain.bo;

import org.dromara.bzIns.domain.InsQuote;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 保险报价业务对象 bz_ins_quote
 *
 * @author bz_huaYal9146
 * @date 2025-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = InsQuote.class, reverseConvertGenerate = false)
public class InsQuoteBo extends BaseEntity {

    /**
     * 报价Id
     */
    @NotNull(message = "报价Id不能为空", groups = { EditGroup.class })
    private Long quoteId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 用户汽车id
     */
    @NotNull(message = "用户汽车id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long carId;

    /**
     * 品牌型号
     */
    @NotBlank(message = "品牌型号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String brandModel;

    /**
     * 车牌号
     */
    private String carPlate;

    /**
     * 保险公司id
     */
    @NotNull(message = "保险公司id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long insCompanyId;

    /**
     * 保险公司名称
     */
    private String insCompanyName;

    /**
     * 报价价格
     */
    @NotNull(message = "报价价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal quotePrice;

    /**
     * 是否显示  0-显示，1-不显示
     */
    private Long isDisplay;


}
